﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="comic_add.aspx.cs" Inherits="admin_comic_add" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="images/style.css" type="text/css" rel="stylesheet">
</head>
<body>
    <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
        <form name="form1" method="post" action="?comicid=<%=Request["comicid"]%>&cjcomicid=<%=Request["cjcomicid"]%>&act=save">
        <tr bgcolor="3972B4">
            <td colspan="3" bgcolor="e7e7e7">
                <div align="center">
                    <strong><font color="#000000">
                        <%=ninfo%>漫画数据</font></strong></div>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    漫画名称</div>
            </td>
            <td width="43%" bgcolor="#FFFFFF">
                <input name="mhmc" type="text" id="mhmc" value="<%=comic.mhmc%>" size="40" /><input name="id"
                    type="hidden" id="id" value="<%=comic.id%>" size="40" />
            </td>
            <td width="40%" rowspan="8" bgcolor="#FFFFFF">
                <div align="center">
                    <%if(!string.IsNullOrEmpty(comic.mhfm)){
                    %>
                    <img src="../cpic/<%=comic.mhfm%>" alt="漫画封面" />
                    <%
                      }%>
                </div>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    漫画作者
                </div>
            </td>
            <td width="43%" bgcolor="#FFFFFF">
                <input name="zzmc" type="text" id="zzmc" value="<%=zzmc%>" size="20">
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    分类
                </div>
            </td>
            <td width="43%" bgcolor="#FFFFFF">
                <select name="classid" size="1" id="classid" class="classid" runat="server" datatextfield="classname" datavaluefield="id">
                </select>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%">
                <div align="right">
                    地区
                </div>
            </td>
            <td width="43%" bgcolor="#FFFFFF">
                <select name="dqid" size="1" id="dqid" class="dqid" runat="server" datatextfield="diqu" datavaluefield="id" >
                    
                </select>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%" bgcolor="#FFFFFF">
                <div align="right">
                    完结状态</div>
            </td>
            <td bgcolor="#FFFFFF">
                <input name="zt" type="radio" value="0" <%=comic.zt?"":"checked" %> />
                连载中
                <input name="zt" type="radio" value="1" <%=comic.zt?"checked":"" %> />
                已完结
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%" bgcolor="#FFFFFF">
                <div align="right">
                    封面图片</div>
            </td>
            <td bgcolor="#FFFFFF">
                <input name="mhfm" type="text" id="mhfm" value="<%=comic.mhfm%>" size="40">
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%" bgcolor="#FFFFFF">
                <div align="right">
                    字母</div>
            </td>
            <td bgcolor="#FFFFFF">
                <input name="zm" type="text" id="zm" value="<%=comic.zm%>" size="40">
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%" bgcolor="#FFFFFF">
                <div align="right">
                    漫画别名</div>
            </td>
            <td bgcolor="#FFFFFF">
                <input name="mhbm" type="text" id="mhbm" value="<%=comic.mhbm%>" size="40">
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%" bgcolor="#FFFFFF">
                <div align="right">
                    漫画题材</div>
            </td>
            <td bgcolor="#FFFFFF">
                <input name="mhtc" type="text" id="mhtc" value="<%=comic.mhtc%>" size="40">
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%" bgcolor="#FFFFFF">
                <div align="right">
                    介绍</div>
            </td>
            <td bgcolor="#FFFFFF">
                <textarea name="mhjs" cols="40" rows="10" id="mhjs"><%=HttpUtility.HtmlDecode(comic.mhjs)%></textarea>
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%" bgcolor="#FFFFFF">
                <div align="right">
                    是否推荐</div>
            </td>
            <td bgcolor="#FFFFFF">
                <input name="tj" type="radio" value="0" <%=comic.tj?"":"checked" %> />
                否
                <input name="tj" type="radio" value="1" <%=comic.tj?"checked":"" %> />
                是
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="17%" bgcolor="#FFFFFF">
                <div align="right">
                    漫画文件夹（选填）</div>
            </td>
            <td bgcolor="#FFFFFF">
                <input name="comicdir" type="text" value="" />
            </td>
        </tr>
        <tr bgcolor="#FFFFFF">
            <td colspan="3">
                <div align="center">
                    <input type="submit" name="Submit" class="Submit" value="确认<%=ninfo%>">
                </div>
            </td>
        </tr>
        </form>
    </table>
</body>
</html>
<script language="JavaScript" type="text/JavaScript">
    function SwitchNewsType(NewsType) {
        switch (NewsType) {
            case "PicNews":
                document.getElementById('PicNews').style.display = '';
                break;

        }
    }
</script>
